const { Controller } = require("uni-cloud-router");
module.exports = class ShopController extends (
    Controller
) {

    /**
     * desc: 根据门店id获取门店信息数据方法
     * param: shop_id - 门店id
     * return: 门店信息数据
     */
    async getShopInfoById(event, context) {
        return this.service.shop.getShopInfoById(event.event);
    }


	async querywifi(event) {
		uniCloud.logger.log("querywifi-----------")
		let shop_wifi = await this.db.collection('wmzmall-app-wifi').where({
				shop_id: event.data.shop_id
			}).get()
			uniCloud.logger.log(shop_wifi)
		return shop_wifi;
	}
};
